package messagesPacks;


import java.util.HashMap;
import java.util.Hashtable;

import Entity.Book;
import Entity.User;

import messagesPacks.GenericMessage.msgType;

/**
 * This class representing a LibrarianSubjectMessage
 * Date: 3/1/2013
 * @author Tali Pisarev
 *
 */


public class LibrarianSubjectMessage extends GenericMessage 
{

	private static final long serialVersionUID = 1L;
	
	/**Hashtable-BookSubjects save all the subjects of the book*/
	private Hashtable<Integer,String> BookSubjects; 
	/**ISBN is International Standard Book Number */
	private String ISBN;

/**
* Constructor the LibrarianSearchUserMessage with default values
*/	
	
	public LibrarianSubjectMessage()
	{
		this.type = msgType.LibrarianGetBookSubjectMSG;
		BookSubjects = new Hashtable<Integer,String>();
		
	}
	
//===================================================================	
//  Getters & Setters
//===================================================================		
	public String getISBN()
	{
		return ISBN;
	}

	public void setISBN(String ISBN) 
	{
		this.ISBN = ISBN;
	}
	
	
	public Hashtable<Integer,String> getBookSubjects()
	{
		return this.BookSubjects;
	}
	
	public void setBookSubjects(Hashtable<Integer,String> subjects)
	{
		if(!subjects.isEmpty())
		  {
			this.BookSubjects.putAll(subjects)  ; 
		  }
	}
}
